/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mahumLogs.backedbeans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Edouard
 * 
 * Cette Entity permet d'enregistrer l'activation de l'authentification par adresse MAC ou
 * la desactivation
 */
@Entity
public class ReportActivityAuth implements Serializable{

    @Column(columnDefinition="TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    @Temporal(TemporalType.TIMESTAMP)
    @Id
    private Date dateEvent;
    
    private boolean enabled;

    /**
     * Constructeur
     */
    public ReportActivityAuth() {
        
    }

    /**
     * 
     * @return dateEvent
     */
    public Date getDateEvent() {
        return dateEvent;
    }

    /**
     * 
     * @param dateEvent 
     */
    public void setDateEvent(Date dateEvent) {
        this.dateEvent = dateEvent; 
    }

    /**
     * 
     * @return enabled
     */
    public boolean isEnabled() {
        return enabled;
    }

    /**
     * 
     * @param enabled 
     */
    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
}
